package io.gimo.study.design_pattern.factory.factory_method.factory;


import io.gimo.study.design_pattern.factory.factory_method.Sender;
import io.gimo.study.design_pattern.factory.factory_method.product.MailSender;
import io.gimo.study.design_pattern.factory.factory_method.product.SmsSender;

/**
 * 静态工厂方法
 * 与工厂方法的区别在于生产产品的方法为静态，不用实例化工厂
 * @author GimoXie
 *
 */
public class SendFactorys {

	public static Sender MailSender(){
		return new MailSender();
	}
	
	public static Sender SmsSender(){
		return new SmsSender();
	}
}
